x = sym('x'); y = sym('y');

expr = (x+1)*(x-1);

x / y

simplify(expr)